using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace DIALOGUE
{
    public class DIALOGUE_LINE
    {
        public string rawData { get; private set; } = string.Empty;
        public DL_SPEAKER_DATA speaker;     
        public DL_DIALOGUE_DATA dialogue;
        public DL_COMMAND_DATA commands;

        public bool hasDialogue => dialogue != null;//dialogue != string.Empty;
        public bool hasSpeaker => speaker != null;
        public bool hasCommands => commands != null;


        public DIALOGUE_LINE(string rawLine,string s,string d,string c)
        {
            rawData = rawLine;
            this.speaker = string.IsNullOrEmpty(s) ? null : new DL_SPEAKER_DATA(s);
            this.dialogue = string.IsNullOrEmpty(d) ? null : new DL_DIALOGUE_DATA(d);
            this.commands = string.IsNullOrEmpty(c) ? null : new DL_COMMAND_DATA(c);
        }
    }
}